package com.lml.practice14.service;

import com.lml.practice14.entity.Users;
import com.lml.practice14.mapper.UsersMapper;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

public class UsersServiceImpl implements UsersService {
    @Autowired
    UsersMapper usersMapper;


    @Override
    public Users login(String number, String password) {
        return usersMapper.selectUserByUsernameAndPassword(number,password);

    }

    @Override
    public List<Users> findAllaaa(Users users) {
        return usersMapper.selectAll();
    }

}